using Mapster;

namespace Abc.Application
{
    public class Mapper : IRegister
    {
        public void Register(TypeAdapterConfig config)
        {
            //config.ForType<Role, RoleDto>()
            //    .Map(dest => dest.Securities, src => src.Securities);

            // config.ForType<Expert, ExpertDto>().Map(dest=>dest.Ate_Pi_Direction,src=>src.ExtensionData.);

            // Description �û���
            //config.ForType<User, UserOut>()
            //.Map(dest => dest.LastLoginTime, src => src.LastLoginTime!=null?src.LastLoginTime.Value.ToString("yyyy-MM-dd HH:mm:ss"):"")//
            //.Map(dest => dest.UpdateTime, src => src.LastLoginTime != null ? src.UpdateTime.Value.ToString("yyyy-MM-dd HH:mm:ss") : "")//
            //.Map(dest => dest.DeletedTime, src => src.LastLoginTime != null ? src.DeletedTime.Value.ToString("yyyy-MM-dd HH:mm:ss") : "")//
            //.Map(dest => dest.Account, src => src.Account)// �û���
            //.Map(dest => dest.Pwd, src => src.Pwd)// ����
            //.Map(dest => dest.UserType, src => src.UserType)// �˻�����
            //.Map(dest => dest.IsEnable, src => src.IsEnable)// �Ƿ�����
            //.Map(dest => dest.IsTest, src => src.IsTest)// �Ƿ����
            //.Map(dest => dest.Nick, src => src.Nick)// �ǳ�
            //.Map(dest => dest.Email, src => src.Email)// ����
            //.Map(dest => dest.Province, src => src.Province)// ʡ��
            //.Map(dest => dest.City, src => src.City)// ����
            //.Map(dest => dest.Town, src => src.Town)// ��
            //.Map(dest => dest.Address, src => src.Address)// ��ϸ��ַ
            //.Map(dest => dest.Phone, src => src.Phone)// ��ϵ�绰
            //.Map(dest => dest.Tel, src => src.Tel)// �칫�绰
            //.Map(dest => dest.Remark, src => src.Remark)// ��ע
            //.Map(dest => dest.LastLoginTime, src => src.LastLoginTime)// ����¼ʱ��
            //.Map(dest => dest.LastLoginIp, src => src.LastLoginIp)// ����¼IP
            //.Map(dest => dest.LastLoginUserAgent, src => src.LastLoginUserAgent)// ����¼�û��������Ϣ
            //.Map(dest => dest.CreatorUserId, src => src.CreatorUserId)// �����û�ID
            //.Map(dest => dest.CreatorUserName, src => src.CreatorUserName)// �����û�
            //.Map(dest => dest.CreationTime, src => src.CreationTime)// ����ʱ��
            //.Map(dest => dest.UpdateUserId, src => src.UpdateUserId)// �����û�ID
            //.Map(dest => dest.UpdateUserName, src => src.UpdateUserName)// �����û�
            //.Map(dest => dest.UpdateTime, src => src.UpdateTime)// ����ʱ��
            //.Map(dest => dest.IsDeleted, src => src.IsDeleted)// Ĭ�ϼ�ɾ��
            //.Map(dest => dest.DeletedUserId, src => src.DeletedUserId)// ɾ���û�ID
            //.Map(dest => dest.DeletedUserName, src => src.DeletedUserName)// ɾ���û�
            //.Map(dest => dest.DeletedTime, src => src.DeletedTime)// ɾ��ʱ��
            //;
        }
    }
}